﻿<cfscript>
/** 
* ORM StudentStatus
* 
* @hint "Hibernate persistenter t_student_status. 定义学生在校有关学业的基本数据项" 
* 
*/ 

component 
	displayname="public.service.orm.senate.StudentStatus" 
	output=false 
	persistent=true 
	selectBeforeUpdate=true dynamicInsert=true dynamicUpdate=true 
	cacheuse="Transactional" 
	entityname="StudentStatus" 
	table="t_student_status"
	{

	property type="string" name="ProfileID" column="stu_id" fieldtype="id" generator="foreign" params="{property='Student'}" hint="学号";
	
	property type="string" name="AcademicType" column="acad_type" hint="获得学历方式码";
	property type="string" name="Grade" column="grade" hint="所在年级";
	property type="string" name="StudentLevel" column="level_code" hint="培养层次代码";
	property type="string" name="StatusCode" column="status_code" hint="学生当前状态码";
	property type="string" name="CandidatesNo" column="candidatesno" hint="考生号";
	property type="string" name="StudentProps" column="student_prop" hint="学籍状态代码";

	property type="string" name="JoinDate" column="date_join" hint="入学日期";
	property type="string" name="HomeAddress" column="homeaddr" hint="家庭地址";
	property type="string" name="ZipCode" column="zipcode" hint="邮政编码";

	property type="string" name="StudentEmail" column="stu_email" hint="电子邮件";
	property type="string" name="StudentTelephone" column="stu_tel" hint="联系电话";

	property type="string" name="StudentCompany" column="stu_company" hint="进修生所在单位";

	property name="Student" fieldtype="one-to-one" cfc="Student" constrained="true" hint="学生档案";

	property name="Institute" fieldtype="many-to-one" fkcolumn="institute_id" cfc="Institute" hint="学院";
	property name="SubjectGB" fieldtype="many-to-one" fkcolumn="subject_code" cfc="DictionaryChinaSubject" hint="国家专业代码";
	property name="LearningBranch" fieldtype="many-to-one" fkcolumn="b_id" cfc="LearningBranch" hint="学科门类";
	property name="StudentType" fieldtype="many-to-one" fkcolumn="st_id" cfc="DictionaryStudentType" hint="学生类别";
	property name="FosterType" fieldtype="many-to-one" fkcolumn="f_id" cfc="DictionaryFosterType" hint="培养方式";

}

</cfscript>